home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
EDITOR
/
FUGUE_3.ARJ
/
WF.014
< prev
next >
Wrap
Text File
|
1990-11-04
|
9KB
|
277 lines
.f3 - # - Chapter 14 - TOC
.rm70
.mt5
.mb5
.pl66
.tc
.tc 14. TABLE OF CONTENTS .................................#
CHAPTER 14 TABLE OF CONTENTS
Many documents you produce will require a table of contents. This can
be achieved by identifying the table of contents entries, and
executing a Generate Table Of Contents command (Ctrl F5). The table of
contents files have the same name as the file you are generating for,
but have the extension .TOC for the main one and the extensions .TO1
up to .TO9 for the ancillary ones. Only those files you request will
be produced.
Table of contents files can be included in your document by use if the
file include (.FI) dot command, and if so included, will be printed
when you print the document. However, if you change the document, you
will need to re-create the table of contents files, since this is not
done automatically.
Level Numbers can be generated automatically if you wish, or you can
put them in yourself. Automatic level numbers can be numbers, letters
or Roman numerals.
.tc Identifying Table of Contents Entries ..............#
Identifying Table of Contents Entries
Before you can generate a table of contents, you need to identify each
entry that you want in the table of contents. This is done with the
.TC dot command. Separate each entry from the dot command by at least
one space. If you wish to include the page number, merely put the
character # in the line where you wish it to print. You can include
special print control functions and characters for special effects
during printing. To indent an entry in the table of contents, just put
extra spaces after the TC
for example:
.TC INTRODUCTION.............................#
.TC Part 1..............................#
Your table of contents entries will look like this:
INTRODUCTION.............................1
Part 1..............................2
If you follow the dot command immediately by a number 1 to 9, the
table of contents line will not be written to the .TOC file, but
instead to a separate file with the extension .TO1 to .TO9 depending
on the digit. This allows you more flexibility in generating tables of
contents, for example a separate list of tables, a separate list of
illustrations and so on.
.CP7
for example:
.TC1 figure 1.1 Sales vs Expenditure ... #
.tc2 table 1.1 Sales vs Expenditure ... #
will produce in file.TO1 the line
figure 1.1 Sales vs Expenditure ... 4
and in file.TO2 the line
table 1.1 Sales vs Expenditure ... 4
assuming that the page number is 4.
Word Fugue will gather all the entries for a numbered .TC command and
place them into separate files. All these files have the same name as
the original document, but the extension is set to a numbered
extension: .TO1 , .TO2 and so on.
.tc Automatic Level Numbering ..........................#
Automatic Level Numbering
Level numbers can be generated automatically by use of the @L print
function. You can have up to 9 different level numbers, in differing
types and styles. This is discussed more fully below. You place the
level number in brackets : {.@L1} for level 1 to {.@L9} for level 9.
They will be expanded at printing or TOC generation, depending whether
they are in the text body or the .TC lines.
.tc Style of Numbering ..............................#
Style of Numbering
Style can be any of Office, Decimal (default), or Nodot.
Office prints only one number for each level, followed by a dot.
Thus:
{.@L1}
{.@L2}
{.@L3}
gives
1.
1.
1.
NoDot is similar to Office, except that the dot (.) is not printed.
Thus:
{.@L1}
{.@L2}
{.@L3}
gives
1
1
1
Decimal produces all levels separated by dots (.)
Thus:
{.@L1}
{.@L2}
{.@L3}
gives
1.
1.1.
1.1.1.
You set this with the .TS command
.TS O for Office
or .TS D for Decimal
or .TS N for Nodot
The style you last set remains in effect for all level numbers until
you change it. Thus if you wish to have decimal numbering for the
first three levels, and Office numbering for the remainder, you will
need to use .TS D when you start, .TS O when you reach level 4, and
.TS D when you return to a level lower than 4. You will need to
continue toggling the style throughout the document.
.tc Types of Numbering ..............................#
Types of Numbering
Each level can have its own type of numbering, independent of all
the other levels. The available types of numbering are:-
R Roman uppercase eg III.
r roman lowercase eg iii.
N or n Numeric (default) eg 3.
A Alphabetic uppercase eg C.
a alphabetic lowercase eg c.
You set this with the .TL command:
.TLn x
where n is 1 to 9 (the level)
x is R,r,N,n,A,a (as above)
NOTE These letters are case sensitive, so that r (lowercase) will
give lowercase Roman, while R (uppercase) will give uppercase
Roman.
.tc Set Start Numbers ...............................#
Set Start Numbers
Each level defaults to starting at number 1. However, you can start
each level at a different number, eg if you have divided your
document up into different parts, and only want to print a part of
it.
Note that referencing a lower numbered level will automatically
reset all higher numbered levels to 1.
For alphas, use the equivalent number eg a = 1, b=2, z=26 etc. The
level number is always stored internally as a number, and is
converted on printing to the appropriate text.
.CP5
You set this with .TN command:
.TNn i
where n is 1 to 9 (the level)
i is the start number
.tc Examples ........................................#
Examples
OFFICE
.TS Office
.TL2 r
.tl3 a
{.@L1} this is level 1
{.@L2} this is level 2
({.@L3}) this is level 3
produces
1. this is level 1
i. this is level 2
(a.) this is level 3
NODOT
.TS Nodot
.TL2 r
.tl3 a
{.@L1} this is level 1
{.@L2} this is level 2
({.@L3}) this is level 3
produces
1 this is level 1
i this is level 2
(a) this is level 3
.CP8
DECIMAL
.TS Decimal
.TL2 r
.tl3 a
{.@L1} this is level 1
{.@L2} this is level 2
({.@L3}) this is level 3
produces
1. this is level 1
1.i. this is level 2
(1.i.a.) this is level 3
Embed the commands in the .TC lines for the correct numbers to
appear in table of contents.
.tc {.@L1} this is level 1 ................... #
{.@L1} this is level 1
.tc {.@L2} this is level 2 .................. #
{.@L2} this is level 2
.tc ({.@L3}) this is level 3 ............. #
({.@L3}) this is level 3
.CP5
.tc Producing a Table of Contents ......................#
Producing a Table of Contents
To produce the table of contents, enter the command Ctrl F5. You will
be prompted for the name of the file for which to generate the TOC.
Enter the name of the file. Note if you are working on the file,
please save it first so that the up to date version is used.
Production of tables of contents happen in foreground, so you will not
be able to do any editing while this happens. However, table of
contents generation usually takes no more than a few seconds.
Word Fugue will gather all the entries for a numbered .TC command and
place them into separate files. All these files have the same name as
the original document, but the extension is set to a numbered
extension: .TO1 , .TO2 and so on.
These files should be included in your document via the .FI command.
TIP - if you are writing a book or similar, with several chapters, set
each chapter up as a separate file, and create a master file
that includes each chapter, table of contents & index file by
use of .FI commands. Generate the table of contents for the top
level file, and all lower level files will be included.